package main

import "fmt"
import "os"

func WriteFile(path string) {
	f, err := os.Create(path)
	if err != nil {
		fmt.Println("打开文件异常")
		return
	}
	var buf string
	buf = "china is the third largest country of the world"
	f.WriteString(buf)
	for i := 0; i <= 99; i++ {
		fmt.Println("正在把0-99输出到shortcomings.txt...")
		f.WriteString(string(i))
	}
	f.WriteString("file ending....")
	defer f.Close()
}
func main() {
	path := "../target/shortcomings.txt"
	WriteFile(path)
}
